package com.hns.dev.linys.guava.string;

import com.google.common.base.Joiner;

import java.util.Arrays;

/**
 * Created by admin on 2019/2/16.
 * Joiner 提供了各种方法来处理字符串加入操作，对象等。
 */
public class GuavaJoiner {

    public static void main(String args[]){
        GuavaJoiner tester = new GuavaJoiner();
        tester.testJoiner();
    }

    private void testJoiner(){
        System.out.println(Joiner.on(",").skipNulls().join(Arrays.asList(1,2,3,4,5,null,6)));
    }


}
